<!DOCTYPE html>
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <link rel="stylesheet" href="__STATIC__/home/center/css/mall1.css" type="text/css" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
    <link rel="shortcut icon" href="__STATIC__/home/index/picture/2.png" type="image/x-icon">
    <link href='__STATIC__/home/index/css/base-160225.min_5.css' media='screen' rel='stylesheet' type='text/css' />
    <link href='__STATIC__/home/index/css/iconfont_5.css' media='screen' rel='stylesheet' type='text/css' />
    <link href='__STATIC__/home/index/css/iconfont-1_5.css' media='screen' rel='stylesheet' type='text/css' />
    <link href='__STATIC__/home/index/css/main_5.css' media='screen' rel='stylesheet' type='text/css' />
    <link href='__STATIC__/home/index/css/user_5.css' media='screen' rel='stylesheet' type='text/css' />
    <link href="__STATIC__/home/js/bootstrap/css/bootstrap.css" rel="stylesheet">
    <script src='__STATIC__/home/index/js/jquery-1.11.3.min_4.js' type='text/javascript'></script>
    <script src='__STATIC__/home/index/js/jssdk-0.0.18.min_4.js' type='text/javascript'></script>
    <script src='__STATIC__/home/index/js/lazyload.min_5.js' type='text/javascript'></script>
    <link rel="shortcut icon" href="__STATIC__/home/index/picture/2.png" type="image/x-icon">
    <script src="__STATIC__/home/js/layer/layer.js"></script>
    <title>文章详情</title>
</head>
<body class="body_color">
<div class="mall_main">
    <div id="child_header">
        <div class="goback"><a href="{:url('home/center/index')}"><i></i></a></div>
        <div class="current_location"><span>文章详情</span></div>
    </div>
    <div class="container settings-main_background_color page-list-header page-container">
        <div class="post-wrapper">
            <div class="post-cont settings-main_content_background_color">
                <div class="post">
                    <div class="post-list lazyload_scope">

                        {volist name="article" id="vo"}
                        <div class="post-list-each ">
                            <a href="{:url('home/article/details')}?id={$vo.article_id}" class="post-list-each-pic settings-main_header_color">
                                <div class="post-list-each-pic-inner"><img class="" src="{$vo.photo}" /></div>
                            </a>
                            <div class="post-list-each-content">
                                <h3 class="settings-main_header_color"> <a href="{:url('home/article/details')}?id={$vo.article_id}" class="settings-main_header_color settings-main_border">{$vo.article_title}</a> </h3>
                                <p class="settings-main_text_color">{$vo.article_content}</p>
                                <div class="post-info settings-main_desc_color">
                                    <span class="post-info-publish_at">{$vo.article_time|date="Y-m-d H:i",###}</span>
                                    <span class="post-info-publish_at"><button class="btn" data-id="{$vo.article_id}">删除</button></span>
                                    <span class="post-info-dirs">
				<span class='iconfont-1 icon-biaoqian'></span>
			</span>

                                </div>
                            </div>
                        </div>
                        {/volist}


                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<div class="prolist-spfilter-pagenation">
    {$page}
</div>

<script>

    $(document).ready(function(){
        $(".btn").click(function () {
            var link = $(this);
            var fid = link.attr("data-id");

                $.get("{:url('home/center/articles_delete')}?id="+fid,function(data){
                    if(data == 1){
                        layer.msg('删除成功');
                        setTimeout(function(){window.location.reload();},2000);
                    }else{
                        layer.msg('删除失败');
                        setTimeout(function(){window.location.reload();},2000);
                    }
                });
        })
    });


</script>

</body>
</html>
